<template>
    <div id="app">
        <router-view />
    </div>
</template>

<script lang="js">
    export default {
        name: "app",
        data(){
            return{

            }
        },
        created() {
            // 初始化用户信息
            if(localStorage.token){
                this.$store.commit('changeLoginStatus', true)
                this.$store.commit('setUserData', localStorage.token)
            }
        }
    }
</script>

<style lang="stylus">
    body,p,ul,li,h1,h2,h3,h4,h5
        margin 0
        padding 0
    #app
        width 100%
        min-height 100vh
        overflow hidden
        font-family "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif
        -webkit-font-smoothing antialiased
        -moz-osx-font-smoothing grayscale
        background-color #f4f4f4

    // 修改editor高度
    .w-e-text-container
        height 500px !important
    .el-textarea__inner
        font-size 14px !important
        color #666 !important
        border 1px solid rgba(45,140,240,0.4) !important
        line-height 24px !important
    .el-menu
        border-right 0 !important
    ::selection
        background-color #67C23A
        color #fff
    .el-message-box__wrapper
        z-index 300000 !important
</style>
